#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

void exc(int* x, int* y)
{
	int c = *x;
	*x = *y;
	*y = c;
}

int main()
{
	int a = 10;
	int b = 0;
	scanf("%d,%d", &a, &b);
	exc(&a, &b);
	printf("%d,%d", a, b);
	return 0;
}